﻿using System.Collections.Generic;
using System.Text;
using Microsoft.SharePoint;
using Microsoft.SharePoint.PowerShell;
using System.Management.Automation;

namespace FTC.SharePoint.Evolution
{
    [SPCmdlet(RequireLocalFarmExist = true, RequireUserFarmAdmin = true)]
    public class MakeEvolutionCmdLet : SPCmdlet
    {
        [Parameter(Mandatory = true, Position=1, HelpMessage = "Specify namespace")]
        [ValidateNotNullOrEmpty]
        public string Namespace
        {
            get;
            set;
        }

        [Parameter(Mandatory = true, Position=2, HelpMessage = "Specify url of web-application")]
        [ValidateNotNullOrEmpty]
        public string WebUrl { get; set; }

        public string FromVersion
        {
            get;
            set;
        }

        public string ToVersion
        {
            get;
            set;
        }

        protected override void InternalProcessRecord()
        {
            base.InternalProcessRecord();
            //EvolutionsManager.Instance.MakeEvolution(Namespace, WebUrl);
        }
    }
}